package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@ResponseBody
public class CanController {
    //@RequestMapping(value = "/can",method = RequestMethod.GET)
    @GetMapping(value = "/can")
    public String say(@RequestParam(value = "id",required =false,defaultValue = "0") Integer id){

        return "id =" +id;
    }
}
